export interface Workflow {
  id: string
  name: string
  icon: string
  nodes: WorkflowNode[]
  connections: Connection[]
  viewport?: Viewport
  env?: Record<string, string>
}

export interface WorkflowNode {
  id: string
  type: string
  title: string
  position: {
    x: number
    y: number
  }
  config: Record<string, any>
}

export interface Connection {
  id: string
  source: string
  target: string
}

export interface Viewport {
  x: number
  y: number
  zoom: number
}
